<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * CakePHP ComentarioHelper
 * @author lucas
 */
class ComentarioHelper extends AppHelper {

    public $helpers = array();

    public function __construct(View $View, $settings = array()) {
        parent::__construct($View, $settings);
    }

    public function total($options) {
        $options['status'] = 1;
        $comentario = ClassRegistry::init('Comentarios.Comentario');
        return $comentario->find('count', array('conditions' => $options));
    }

}
